package jvm.demo002;

public class Son extends Father{
    public Son(){
        super();
    }
    public Son(int age){
        this();
    }
    //该方法不是重写父类方法，static静态方法无法被重写,static方法被称为非虚方法
    public static void showStatic(String str){
        System.out.println("son: "+ str);
    }
    private void showPrivate(String str){
        System.out.println("son private method "+str);
    }
    public void info(){}

    public void display(Father f){
        f.showComm();
    }


    public void show(){
        showStatic("显示static");
        super.showStatic("super static");
        showPrivate("显示private");
        super.showComm();
        //
        showFinal();
        //
        super.showFinal();
        showComm();

        info();

        MethodInterface in = null;
        in.interfaceMethod();
    }

    public static void main(String[] args) {
        Son son = new Son();
        son.show();
    }
}
